<?php
$dir=dirname(__FILE__);//获取目录，并去除后缀
define("DOCMENT_ROOT",$dir);

$m=isset($_GET["m"])?$_GET["m"]:"Index";
$c=isset($_GET["c"])?$_GET["c"]:"index";
$a=isset($_GET["a"])?$_GET["a"]:"index";


require "./Application/{$m}/controller/{$c}Controller.class.php";
$name=$c."Controller";
$indexController=new $name();
$indexController->$a();


